﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CCPnuts.ISkyDiskFileSystem.Interfaces;
using CCPnuts.Pack;
using CCPnuts.ISkyDiskFileSystem;

namespace TestSkyDiskFileSystem
{
    class Uploader : Transmitor, I_Uploader
    {
        public Uploader() : base(PackedInfos.Uploader) { }

        public override void Run()
        {
            base.Run();
            TargetDirectory.Children.ToList().Add(new SkyFile { Name = SourceFile, Parent = TargetDirectory });
        }

        #region I_Uploader Members

        public I_SkyDirectory TargetDirectory { get; set; }

        public string SourceFile { get; set; }

        #endregion
    }
}
